package com.iSnail.ms.gather.ui.tree;

import javax.swing.tree.DefaultMutableTreeNode;

import com.iSnail.ms.gather.ui.chart.ChartInfoPanel;
import com.iSnail.ms.util.Const;
import com.iSnail.ms.util.I18N;

public class DynamicInternalStressTreeNode extends DefaultMutableTreeNode {
	
	ChartInfoPanel chartpanel = null;
	
	public DynamicInternalStressTreeNode(String name){
		super(name);
		String title = I18N.getString("dynamicinternalstress");
		String xdescription = I18N.getString("time");
		String first = I18N.getString("stress");
		String second = I18N.getString("temperature");
		chartpanel = new ChartInfoPanel(
										title, 
										xdescription, 
										first, 
										second,
										3,
										3,
										Const.UNIT_STRESS,
										Const.UNIT_TEMPERATURE,
										Const.DYNAMICINTERNALSTRESS_YALI_VALUEINDEX,
										Const.DYNAMICINTERNALSTRESS_TEMP_VALUEINDEX);
	}
	
	public ChartInfoPanel getChartPanel(){
		return chartpanel;
	}
}